Class RadioBox extends Box
var index=0;
function RadioBox(){
	this.changeSelf();
}
function resetSelf(){
	for (var i=0; i<this.children.length;i++){
		var button=this.children[i];
		button.toggleMode=true;
		button.setToggled(this.index==i);
	}
}
public function setIndex(v){
	this.index=v;
	this.changeSelf();
}
function onButtonClick(){
	this.setIndex(G.target.getDepth());
	var target=G.target;
	G.target=this;
	this.dispatchEvent(G.newEvent(Evt.CHANGE));
	G.target=target;
}